import { Navigate, createBrowserRouter } from 'react-router-dom'
import App from '../App'
import Home from '../component/Home'
let router=createBrowserRouter([
    {
        path:'/',
        element:<App></App>,
        children:[
            {
                path:'/',
                element:<Navigate to='/home'></Navigate>
            },
            {
                path:'/home',
                element:<Home></Home>
            }
        ]
    }
])

export default router